package com.hp.ssoserver.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hp.ssoserver.dao.UserMapper;
import com.hp.ssoserver.entity.User;
import com.hp.ssoserver.service.IUserService;
import com.hp.ssoserver.utils.CommonUtil;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Author huangpeng
 * @Title 订单服务实现
 * @Package
 * @Date 2020/8/25 16:05
 * @Description
 * @Version 1.0
 */
@Slf4j
@Service
public class UserService extends ServiceImpl<UserMapper, User> implements IUserService {
    @Autowired
    private UserMapper userMapper;

    @Override
    public boolean saveUser(User user) {
        user.setUserId(CommonUtil.uuid());
        return super.save(user);
    }
}
